<!DOCTYPE html>
<html>
<head>
    <title>单据主表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:depothead:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:depothead:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:depothead:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">类型(出库/入库)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.type" placeholder="类型(出库/入库)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">出入库分类</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.subtype" placeholder="出入库分类"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">项目Id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.projectid" placeholder="项目Id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">初始票据号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.defaultnumber" placeholder="初始票据号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">票据号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.number" placeholder="票据号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">操作员名字</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.operpersonname" placeholder="操作员名字"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.createtime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">出入库时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.opertime" placeholder="出入库时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">供应商Id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.organid" placeholder="供应商Id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">采购/领料-经手人Id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.handspersonid" placeholder="采购/领料-经手人Id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">账户Id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.accountid" placeholder="账户Id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">变动金额(收款/付款)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.changeamount" placeholder="变动金额(收款/付款)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">调拨时，对方项目Id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.allocationprojectid" placeholder="调拨时，对方项目Id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">合计金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.totalprice" placeholder="合计金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">付款类型(现金、记账等)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.paytype" placeholder="付款类型(现金、记账等)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.remark" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">业务员（可以多个）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.salesman" placeholder="业务员（可以多个）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">多账户ID列表</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.accountidlist" placeholder="多账户ID列表"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">多账户金额列表</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.accountmoneylist" placeholder="多账户金额列表"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">优惠率</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.discount" placeholder="优惠率"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">优惠金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.discountmoney" placeholder="优惠金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">优惠后金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.discountlastmoney" placeholder="优惠后金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">销售或采购费用合计</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.othermoney" placeholder="销售或采购费用合计"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">销售或采购费用涉及项目Id数组（包括快递、招待等）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.othermoneylist" placeholder="销售或采购费用涉及项目Id数组（包括快递、招待等）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">销售或采购费用涉及项目（包括快递、招待等）</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.othermoneyitem" placeholder="销售或采购费用涉及项目（包括快递、招待等）"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">结算天数</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.accountday" placeholder="结算天数"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单据状态(未审核、已审核)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="depothead.status" placeholder="单据状态(未审核、已审核)"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/depothead.js?_${.now?long}"></script>
</body>
</html>